﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Gustozzi.DAL;

namespace WebGustozzi.ModuloVentas
{
    public partial class wfActualizarZonaDistribucion : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                inicializar();
            }
        }

        public void inicializar()
        {
            VentasDataEntities contexto  = new VentasDataEntities();

            var oProducto = from p in contexto.Pedidos
                          select p;
            grvListaVen.DataSource = oProducto;
            grvListaVen.DataBind();

        }

        protected void Button8_Click(object sender, EventArgs e)
        {
            Response.Redirect("../wfPrincipal.aspx");
        }
    }
}